package com.cy4;

import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNext()) { // 注意 while 处理多个 case
            String s = in.nextLine();
            char[] arr = s.toCharArray();
            char[] tmp = new char[arr.length];
            int k = 0;
            flag:
            for (int i = 0; i < arr.length; i++) {
                if (i == 0) {
                    tmp[k++] = arr[i];
                } else {
                    for (int i1 = 0; i1 < k; i1++) {
                        if (tmp[i1] == arr[i]) {
                            continue flag;
                        }
                    }
                    tmp[k++] = arr[i];
                }
            }
            for (int i = 0; i < k; i++) {
                System.out.print(tmp[i]);
            }
            System.out.println();
        }
    }
}